//-----------------------------------------------------------------------
// <copyright file="a_UserTypeService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_UserTypeService
    {
        #region a_UserType

        public static void Createa_UserType(a_UserType a_UserType)
        {            
            try
            {
                a_UserTypeDAO a_UserTypeDAO = new a_UserTypeDAO();
                a_UserTypeDAO.Createa_UserType(a_UserType);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_UserType(a_UserType a_UserType)
        {            
            try
            {
                a_UserTypeDAO a_UserTypeDAO = new a_UserTypeDAO();
                a_UserTypeDAO.Updatea_UserType(a_UserType);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_UserType(int userTypeID)
        {            
            try
            {
                a_UserTypeDAO a_UserTypeDAO = new a_UserTypeDAO();
                a_UserTypeDAO.Deletea_UserType(userTypeID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_UserType Geta_UserType(int userTypeID)
        {            
            try
            {
                a_UserTypeDAO a_UserTypeDAO = new a_UserTypeDAO();
                return a_UserTypeDAO.Geta_UserType(userTypeID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_UserTypeCollection Geta_UserTypeList(a_UserTypeColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_UserTypeDAO a_UserTypeDAO = new a_UserTypeDAO();
                return a_UserTypeDAO.Geta_UserTypeList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_UserTypeCollection Geta_UserTypeList(a_UserTypeColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_UserTypeDAO a_UserTypeDAO = new a_UserTypeDAO();
                return a_UserTypeDAO.Geta_UserTypeList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}